<template>
  <div class="Dialog" :style="{ width, height }" v-if="isShow">
    <h1>操作一下</h1>

    <slot></slot>
  </div>
</template>
<script>
export default {
  name: 'DialogCom',
  props: {
    isShow: {
      type: Boolean
    },
    width: {
      type: String,
      default: '50%'
    },
    height: {
      type: String,
      default: '50%'
    }
  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style   scoped>
.Dialog {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
h1 {
  color: #fff;
}
form {
  color: #fff;
}
</style>
